<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
</head>
<body>
<div id="enterDate">
	<form action="" id="form11">
	<table width="690px" height="350px" border="0" align="center"
				cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
				<tr>
					<td align="center" bgcolor="#E2F7FE">
							<table width="99%" border="0" cellspacing="1" cellpadding="3">
								<tr style="height: 40px">
									<td width="10%" align="center"><strong>矫正单位:</strong></td>
									<td width="10%" align="left">
										<select name="jid" style="width: 172px; height: 30px" id="jid" data-options="prompt:'请选择矫正单位'"></select>
									</td>
									<td width="10%" align="center"><strong>劳动日期:</strong></td>
									<td colspan="3" align="left">
									<input id="edate" name="date" placeholder="请选择日期" style="width: 150px; height: 28px"
										class="laydate-icon" onclick="laydate()"/>
									</td>		
								</tr>	
								<tr style="height: 40px">
									<td width="10%" align="center"><strong>姓&nbsp;&nbsp;&nbsp;&nbsp;名:</strong></td>
									<td width="10%" align="left">
										<select name="pid" style="width: 172px; height: 30px" id="pid" data-options="prompt:'请选择矫正人'"></select>
									</td>
									<td width="10%" align="center"><strong>考核人:</strong></td>
									<td colspan="3" width="25%" align="left">
										<select name="kid" style="width: 172px; height: 30px" id="kid" data-options="prompt:'请选择考核人'"></select></td>
								</tr>
								<tr style="height: 40px">
									<td width="10%" align="center"><strong>基准分值:</strong></td>
									<td width="10%" align="left">
										<input type="text" name="standardScore" value="10" readonly style="width: 168px; height: 25px">
									</td>
									<td width="10%" align="center"><strong>得&nbsp;&nbsp;&nbsp;&nbsp;分:</strong></td>
									<td colspan="3" width="25%" align="left">
										<select name="score" style="width: 172px; height: 30px" id="score" class="easyui-combobox" data-options="prompt:'请选择分数'">
											<option value=1>1分</option>
											<option value=2>2分</option>
										    <option value=3>3分</option>
										    <option value=4>4分</option>
										    <option value=5>5分</option>
										    <option value=6>6分</option>
										    <option value=7>7分</option>
										    <option value=8>8分</option>
										    <option value=9>9分</option>
										    <option value=10>10分</option>
										</select></td>
									</td>
								</tr>
								<tr style="height: 50px">
									<td width="10%" align="center"><strong>表现情况:</strong></td>
									<td align="left">
									<input type="text" name="performance" value="" style="width: 168px; height: 25px">
									</td>
									<td width="10%" align="center"><strong>劳动时长:</strong></td>
									<td colspan="3">
									<select name="time" style="width: 172px; height: 30px" id="time" class="easyui-combobox" data-options="prompt:'请选择分数'">
											<option value=1>1小时</option>
											<option value=2>2小时</option>
										    <option value=3>3小时</option>
										    <option value=4>4小时</option>
										    <option value=5>5小时</option>
										    <option value=6>6小时</option>
										    <option value=7>7小时</option>
										    <option value=8>8小时</option>
										</select>
									</td>
								</tr>
								<tr style="height: 40px">
									<td width="10%" align="center"><strong>劳动内容:</strong></td>
									<td colspan="1" align="left"><textarea rows="4" cols="25" id="content" name="content"></textarea></td>
									<td width="10%" align="center"><strong>备&nbsp;&nbsp;&nbsp;&nbsp;注:</strong></td>
									<td colspan="3" align="left"><textarea rows="4" cols="25" id="remarks" name="remarks"></textarea></td>
								</tr>
							</table>
					</td>
				</tr>
	</table>
	</form>
	</div>
		<script type="text/javascript">
			var enterDate = new Vue({
				el : '#enterDate',
				data : {
					result : ""
				}
			});
			//显示司法所和矫正人员下拉框
			var getList = function() {
				$('#jid').combobox({
					dataType : "json",
					url:'${request.contextPath}/expire/jselect',
				    valueField:'id',    
				    textField:'name',
					onSelect: function(rec){
						$('#pid').combobox('setValue', "");
					    var url = '${request.contextPath}/expire/pselect?jid='+rec.id;
					    $('#pid').combobox('reload', url);    
					 }
				});
				$('#pid').combobox({ 
					dataType : "json",
					url:'${request.contextPath}/expire/pselect1',
				    valueField:'id',    
				    textField:'name',
				    onSelect: function(rec){    
				    	$.ajax({
				    		dataType : "json",
							url:'${request.contextPath}/expire/enterDate?id='+rec.id,
							success : function(msg) {
								enterDate.result = msg.j_enterdate;	
							}
						})   
					 }
				});
				$('#kid').combobox({ 
					dataType : "json",
					url:'${request.contextPath}/voLabour/kselect',
				    valueField:'id',    
				    textField:'name',
				});
			}
			getList();
			</script>
</body>
</html>